<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="header::head-fragment('鼎联科技-更多','search')">
</head>

<body>
    <!-- <header th:replace="header::header-fragment"></header> -->
    <!-- nav -->
    <nav th:replace="header::nav-fragment"></nav>

    <!--分类筛选-->
    <!-- <div class="classify">
    <div class="category">
        <div class="category_bar">
            <th:block th:if="${searchPageCategoryVO!=null}">
                <div class="fm c">
                    <a href="##" class="qqq" th:text="${searchPageCategoryVO.secondLevelCategoryName}">newbee-mall</a>
                    <div>
                        <th:block th:each="thirdLevelCategory : ${searchPageCategoryVO.thirdLevelCategoryList}">
                            <a th:href="@{${'/search?goodsCategoryId='+thirdLevelCategory.categoryId}}"
                               th:text="${thirdLevelCategory.categoryName}">newbee-mall</a>
                        </th:block>
                    </div>
                </div>
                <i><img src="mall/image/search/right-@1x.png" alt=""></i>
                <div class="findword">"
                    <th:block th:text="${searchPageCategoryVO.currentCategoryName}"></th:block>
                    "
                </div>
            </th:block>
            <th:block th:if="${searchPageCategoryVO==null}">
                <th:block th:if="${keyword!=null and keyword !=''}">
                    <div class="findword">搜索 "
                        <th:block th:text="${keyword}"></th:block>
                        "
                    </div>
                </th:block>
            </th:block>
        </div>
    </div>
</div> -->

    <!--排序-->
    <!-- <div class="sort">
    <div class="list">
        <a th:href="@{'/search?keyword='+${keyword==null?'':keyword}+'&orderBy=default'}">
            <div th:class="${orderBy==null || orderBy=='default'?'active':''}">推荐</div>
        </a>
        <a th:href="@{'/search?keyword='+${keyword==null?'':keyword}+'&orderBy=new'}">
            <div th:class="${orderBy=='new'?'active':''}">新品</div>
        </a>
        <a th:href="@{'/search?keyword='+${keyword==null?'':keyword}+'&orderBy=price'}">
            <div th:class="${orderBy=='price'?'active':''}">价格</div>
        </a>
    </div>
</div> -->

    <div class="goods_item center">
        <div class="recommend">
            <th:block th:if="${#lists.isEmpty(pageResult.list)}">
                未查询
            </th:block>
            <th:block th:unless="${#lists.isEmpty(pageResult.list)}">
                <ul>
                    <th:block th:each="news : ${pageResult.list}">
                        <li>
                            <a th:href="${news.url}">
                                <!-- <div class="info discount" th:text="${news.author}"></div> -->
                                <img th:src="${news.thumbUrl}" th:alt="${news.author}">
                                <p class="name" th:text="${news.title}"></p>
                                <div class="comment">
                                    <p th:text="${#dates.format(news.updateTime, 'yyyy-MM-dd HH:mm')}"></p>
                                    <p th:text="${news.author}"></p>
                                </div>
                            </a>
                        </li>
                    </th:block>
                </ul>
            </th:block>
            <div class="clear"></div>
        </div>
        <div class="pages">
            <div class="page_wrap">
                <th:block th:if="${null != pageResult and !#lists.isEmpty(pageResult.list)}">
                    <span class="page_span1">
                 <a th:href="@{${pageResult.currPage==1}?'##':'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage-1}+'&orderBy='+${orderBy==null?'':orderBy}}">
                                    < 上一页
                                </a>
                <th:block th:if="${pageResult.currPage-2 >=1}"><a
                        th:href="@{'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage-2}+'&orderBy='+${orderBy==null?'':orderBy}}"
                        th:text="${pageResult.currPage -2}">1</a></th:block>
                <th:block th:if="${pageResult.currPage-1 >=1}"><a
                        th:href="@{'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage-1}+'&orderBy='+${orderBy==null?'':orderBy}}"
                        th:text="${pageResult.currPage -1}">1</a></th:block>
                <a href="##" class="active" th:text="${pageResult.currPage}">1</a>
                <th:block th:if="${pageResult.currPage+1<=pageResult.totalPage}"><a
                        th:href="@{'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage+1}+'&orderBy='+${orderBy==null?'':orderBy}}"
                        th:text="${pageResult.currPage +1}">1</a></th:block>
                <th:block th:if="${pageResult.currPage+2<=pageResult.totalPage}"><a
                        th:href="@{'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage+2}+'&orderBy='+${orderBy==null?'':orderBy}}"
                        th:text="${pageResult.currPage +2}">1</a></th:block>
                 <a th:href="@{${pageResult.currPage>=pageResult.totalPage}?'##':'/'+${wx.appId}+'/search?keyword='+${keyword==null?'':keyword}+'&page=' + ${pageResult.currPage+1}+'&orderBy='+${orderBy==null?'':orderBy}}">
                                    下一页 >
                                </a>
					</span>
                </th:block>
            </div>
        </div>
    </div>

    <div th:replace="footer::footer-fragment"></div>
    <!-- jQuery -->
    <script th:src="@{/static/plugins/jquery/jquery.min.js}"></script>
    <script th:src="@{/static/js/search.js}" type="text/javascript"></script>
</body>

</html>